define([], function(){
    viicols = [
        {name: 'cols1', display: '签证ID', width: 80, type: 'text', disabled: true},
        {name: 'cols2', display: '签证名称', width: 80, type: 'text', disabled: true},
        {name: 'cols3', display: '签证国家', width: 80, type: 'text', disabled: true},
        {name: 'cols4', display: '签证类型', width: 80, type: 'text', disabled: true},
        {name: 'cols5', display: '审批状态', width: 80, type: 'text', disabled: true},
        {name: 'cols6', display: '是否有效', width: 80, type: 'text', disabled: true},
        {name: 'cols7', display: '制单部门', width: 120, type: 'text', disabled: true},
        {name: 'cols8', display: '制单人', width: 80, type: 'text', disabled: true},
        {name: 'cols9', display: '复制', width: 80, type: 'text', disabled: true}
    ];

    var visa_information_inquiriesv = avalon.define({
        $id:"visa_information_inquiriesDetail",
        showdia: function (id) {
            avalon.vmodels[id].toggle = true;
        },
        $visainfoinqAddOpts:{
            //content:"<div>123123</div>",
            width: 660,
            confirmText:"保存",
            cancelText:"关闭",
            buttons:false
        },
        radiovalue1:"plane",
        radiovalue2:"beijing",
        radiovalue3:true,
        checkboxvalue1:"",

        viidept:"",
        viideptname:"",
        viiuser:"",
        viiusername:"",
        $viistatus:{
            width:'161px',
            singleselect:true,
            sourceFlag:{value:"id",text:"name"},
            dataSource:[{name:'新建',id:1},{name:'审批中',id:2},{name:'完成',id:3}]
        },
        $viitype:{
            width:'161px',
            singleselect:true,
            sourceFlag:{value:"id",text:"name"},
            dataSource:[{name:'团签',id:1},{name:'个签',id:2},{name:'非旅游',id:3},{name:'免签',id:4}]
        },
        $viivalid:{
            width:'161px',
            singleselect:true,
            sourceFlag:{value:"id",text:"name"},
            dataSource:[{name:'有效',id:1},{name:'无效',id:2}]
        },

        $viidropdowndept:{
            pullDataFuncUrl:"../json/dropdown.department.json",
            serverside:true,
            wgwidth:"150px",
            fuzzysourceflag:{name: "cName", value: "value"},
            fuzzyServerside:true,
            fuzzypullDataFuncUrl:"../json/dropdown.department.json",
            showsize:3,
            sourceFlag:{name: "cName", value: "value"},
            outervmid:'visa_information_inquiriesDetail',
            optionClickFunc:function(obj){
                console.log(obj);
            }
        },
        $viidropdowndeptuser:{
            pullDataFuncUrl:"../json/dropdown.departuser.json",
            serverside:true,
            wgwidth:"150px",
            fuzzysourceflag:{name: "cName", value: "value"},
            fuzzyServerside:true,
            fuzzypullDataFuncUrl:"../json/dropdown.departuser.json",
            showsize:3,
            sourceFlag:{name: "cName", value: "value"},
            outervmid:'visa_information_inquiriesDetail',
            optionClickFunc:function(obj){
                console.log(obj);
            }
        },
        $viigropt:{
            checkbox:true,
            singleSelect:true,
            editable:false,
            autoLoad:false,
            pagerbar:true,
            limit:15,
            bar:false,
            loadUrl: "../json/td.visa_information_inquiries_result.json",
            cols: viicols
        },

        viisearchfunc:function () {
            avalon.vmodels['vii_dg'].searchData({})
        },
        onOpen: function() {
            alert("open dialog");
        },
        onConfirm: function(){
            alert('success')
        },
        onClose: function(){
            alert('fail')
        },
        onCancel: function() {
            alert("cancel");
        },
        depcountry:"",//添加中的签证国家
        depname:"",//签证名称
        depday:"",//办签工作日
        deparea:"",//签证领区
        depexpirytime:"",//签证有效期
        entrytimes:"",//入境次数,
        depdepremarks:""//备注
    });
    return visa_information_inquiriesv;
});